import Vue from 'vue';
import VueRouter from 'vue-router';

import iView from 'iview';
import 'iview/dist/styles/iview.css';
Vue.use(iView);


import App from './app.vue';

import HomeVue from './components/home.vue';


Vue.use(VueRouter);

let router = new VueRouter({
    routes:[
        {path:'/',redirect:{name:'home'}},
        {name:'home',path:'/home',component:HomeVue},
    ]
});


let v =new Vue({
    el: '#app',
    router:router,
    render: h => h(App)
});
